import request from '/@/utils/request';


/**
 * 获取京东记录列表
 * @param params 查询参数对象，包含获取记录列表所需的参数
 * @returns 返回一个Promise对象，解析后包含京东记录列表数据
 */
export function getJingList(params: object) {
    return request({
        url: '/jd/jing/list',
        method: 'post',
        data: params,
    });
}

export function addJing(params: object) {
    return request({
        url: '/jd/jing/add',
        method: 'post',
        data: params,
    });
}

export function updateJing(params: object) {
    return request({
        url: '/jd/jing/update',
        method: 'put',
        data: params,
    });
}

export function delJing(params: object) {
    return request({
        url: `/jd/jing/delete/${params.id}`,
        method: 'delete',
    });
}
